<template>
  <div class="goodsintridu-contain">
    <h1>{{desc.title}}</h1>
    <hr>
    <div v-html="desc.content"></div>
  </div>
</template>


<script>
export default {
  data(){
    return{
      id:this.$route.params.id,
      desc:[],
    }
  },
  created(){
    this.getDesc();
  },
  methods:{
    getDesc(){
      this.$http.get("http://www.liulongbin.top:3005/api/goods/getdesc/"+this.id).then(result=>{
        if(result.body.status===0){
          this.desc=result.body.message[0];
        }
      })
    }
  }
}
</script>

<style lang="scss">
.goodsintridu-contain{
  h1{
    font-size: 14px;
    color: skyblue;
    text-align: center;
    padding: 10px 0px;
  }
  img{
    width: 100%;
  }
}
</style>
